<include file='Common:header'/>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            &nbsp;
            <!--个人资料
            <small></small>-->
        </h1>
        <ol class="breadcrumb">
            <li><a href="{:U('Index/index')}"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">个人资料</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- START CUSTOM TABS -->
        <div class="row">
            <div class="col-xs-12">
                <!-- Custom Tabs -->
                <div class="nav-tabs-custom">

                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_detail" data-toggle="tab">个人资料</a></li>
                        <li><a href="{:U('Profile/password')}">修改密码</a></li>
                        <li class="pull-right"><a href="#" class="text-muted"><i class="fa fa-gear"></i></a></li>
                    </ul>

                    <div class="tab-content">

                        <div class="tab-pane active" id="tab_detail">
                            <form role="form" method="post" action="{:U(ACTION_NAME)}">
                                <div style="width:100%;">
                                    <div class="box">
                                        <div class="box-body">
                                            <div class="col-md-6">
                                                <!-- general form elements -->
                                                <div class="box box-primary">
                                                    <!-- form start -->
                                                    <div class="box-body">
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right" for="nickname">昵称</label>
                                                            <div class="col-sm-10">
                                                                <input type="text" placeholder="" id="nickname" name="nickname" value="{$user.nickname}" class="form-control">
                                                            </div>
                                                        </div>
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right" for="email">邮箱</label>
                                                            <div class="col-sm-10">
                                                                <input type="text" placeholder="" id="email" name="email" value="{$user.email}" class="form-control">
                                                            </div>
                                                        </div>
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right" for="credits">积分</label>
                                                            <div class="col-sm-10">
                                                                <input type="text" placeholder="" id="credits" name="credits" value="{$user.credits}" class="form-control took-w100">
                                                            </div>
                                                        </div>
                                                    </div><!-- /.box-body -->
                                                </div><!-- /.box -->
                                            </div>
                                            <div class="col-md-6">
                                                <!-- general form elements -->
                                                <div class="box box-primary">
                                                    <!-- form start -->
                                                    <div class="box-body">
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right took-w120">用户UID</label>
                                                            <div class="col-sm-10 took-w300">
                                                                {$user.uid}
                                                            </div>
                                                        </div>
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right took-w120">登陆帐户名</label>
                                                            <div class="col-sm-10 took-w300">
                                                                {$user.username}
                                                            </div>
                                                        </div>
                                                        <div class="form-group took-h30 took-n30">
                                                            <label class="col-sm-2 control-label text-right took-w120">最后登录IP</label>
                                                            <div class="col-sm-10 took-w300">
                                                                {$user.lastip}
                                                            </div>
                                                        </div>
                                                    </div><!-- /.box-body -->
                                                </div><!-- /.box -->
                                            </div>
                                        </div><!-- /.box-body -->
                                    </div><!-- /.box -->

                                    <div class="box-footer">
                                        <button class="btn btn-primary" type="submit">修改</button>
                                    </div>
                                </div>
                            </form>
                        </div><!-- /.tab-pane -->

                    </div><!-- /.tab-content -->

                </div><!-- nav-tabs-custom -->
            </div><!-- /.col -->

        </div> <!-- /.row -->
        <!-- END CUSTOM TABS -->

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->


<include file='Common:footer'/>